# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "ruby_event_store/rom/adapters/sql/rake_task"

RSpec::Core::RakeTask.new(:spec)
task default: [:ci]

desc "Run CI tasks"
task ci: [:spec]

begin
  require "rubocop/rake_task"

  Rake::Task[:default].enhance [:rubocop]

  RuboCop::RakeTask.new { |task| task.options << "--display-cop-names" }
rescue LoadError
end
